<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>广告版位管理</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="__ADMIN__css/style.css"  media="all">
  <link rel="stylesheet" href="__ADMIN__layui/css/layui.css"  media="all">
  <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
</head>
<body>
<div class="pad-20">
<fieldset class="layui-elem-field layui-field-title">
<legend>版位管理</legend>
</fieldset>
<form name="myform" id="myform" action="" method="post">
<div class="layui-form">
  <table class="layui-table">
    <colgroup>
      <col width="200">
      <col width="150">
      <col width="100">
      <col>
      <col width="250">
    </colgroup>
    <thead>
      <tr>
        <th>版位名称</th>
        <th>版位尺寸</th>
        <th>广告数</th>
        <th>版位描述</th>
        <th>管理操作</th>
      </tr>
    </thead>
    <tbody>
    <volist name="lists" id="val">
      <tr>
        <td>{$val['title']}</td>
        <td>{$val['width']} * {$val['height']} PX</td>
        <td>{:total_count('版位',$val['id'])}</td>
        <td>{$val['description']}</td>
        <td>
            <a class="layui-btn layui-btn-mini" href="{:U('Ads/index',array('catid'=>$val['id']))}"><i class="layui-icon">&#xe60d;</i>广告列表</a>
            <eq name="val['is_lower']" value="1"><a class="layui-btn layui-btn-warm layui-btn-mini" href="{:U('Ads/add',array('catid'=>$val['id']))}"><i class="layui-icon">&#xe61f;</i>添加广告</a></eq>
        </td>
      </tr>
    </volist>
    </tbody>
  </table>
</div>
</form>
</div>
<div class="yzui-filler"></div>
<script src="__ADMIN__js/jquery-1.9.1.min.js" charset="utf-8"></script>
<script src="__ADMIN__layui/layui.js" charset="utf-8"></script>
<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
</body>
</html>
